/*
*Copyright (c) Nikhil Jain.
*Project ICARUS, communications and 
*artificial intelligence.
*/



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package javadrone.client.simulation;

//~--- non-JDK imports --------------------------------------------------------

import javadrone.client.DroneQuery;

import javadrone.statedata.ErrorData.ErrorState.ErrorFlag;

import simbad.demo.Demo;

//~--- JDK imports ------------------------------------------------------------

import javax.vecmath.Vector3d;

/**
 *
 * @author Nikzzay
 */
public class GenericDroneQuery implements DroneQuery {
    private BotSimulator bs;

    public GenericDroneQuery(BotSimulator bs) {
        this.bs = bs;
    }

    @Override
    public Vector3d getCoords() {
        return bs.getCoords();
    }

    @Override
    public Vector3d getAngles() {
        return bs.getAngles();
    }

    @Override
    public boolean isHovering() {
        return bs.isHovering();
    }

    @Override
    public boolean isLanding() {
        return bs.isLanding();
    }

    @Override
    public boolean isAlive() {
        return bs.isAlive();
    }

    @Override
    public ErrorFlag errorState() {
        return bs.errorState();
    }

    @Override
    public Demo getEnvironment() {
        return bs.getEnvironment();
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
